package cn.loioi.multi.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.loioi.multi.common.BaseServiceImpl;
import cn.loioi.multi.mysql.been.BaseAreaMapper;
import cn.loioi.multi.mysql.model.BaseArea;
import cn.loioi.multi.service.BaseAreaService;
import tk.mybatis.mapper.common.Mapper;

@Service
public class BaseAreaServiceImpl extends BaseServiceImpl<BaseArea> implements BaseAreaService {
	@Autowired
	private BaseAreaMapper baseAreaMapper;

	@Override
	public List<Map<String, Object>> selectForSelect2(String code, String name) {
		return baseAreaMapper.selectForSelect2(code, name);
	}

	@Override
	protected Mapper<BaseArea> mapper() {
		return baseAreaMapper;
	}

	@Override
	protected Class<BaseArea> getGenericSuperclass() {
		return BaseArea.class;
	}
}
